package com.tedu.beans;

public class Teacher {

        private Dog dog;
        private Cat cat;

        public void setDog(Dog dog) {
            this.dog = dog;
        }
        public void setCat(Cat cat) {
            this.cat = cat;
        }

        @Override
        public String toString() {
            return "Teacher [dog=" + dog + ", cat=" + cat + "]";
        }
    }
